import { join } from 'node:path'
import { defineConfig } from 'vite'
import react from '@vitejs/plugin-react-swc'

// https://vitejs.dev/config/
export default defineConfig({
  clearScreen: false,
  server: {
    strictPort: true,
  },
  resolve: {
    alias: {
      // '@': path.resolve(__dirname, 'src'),
      '@': join(__dirname, 'src'),
      '@consts': join(__dirname, 'src/consts'),
      '@routes': join(__dirname, 'src/routes'),
    },
  },
  plugins: [react()],
})
